 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Library
{
    public class Client : Person
    {
        private List<Book> taken;

        public Client(string firstName, string lastName, ulong eGN, string address)
            :base(firstName, lastName, eGN, address)
        {
            this.Taken = new List<Book>();
        }

        public List<Book> Taken
        {
            get
            {
                return this.taken;
            }
            set
            {
                this.taken = value;
            }
        }

        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendLine(this.FirstName + " " + this.LastName);
            sb.AppendLine(this.EGN + " " + this.Address);
            for (int i = 0; i < this.Taken.Count; i++)
            {
                sb.AppendLine(this.Taken[i].ToString());
            }

            return sb.ToString();
        }
    }
}
